<?php

use yii\widgets\ActiveForm;

?>

<!DOCTYPE html>
<html>
<head>
  <title></title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="format-detection" content="telephone=no" />
  <link href="/css/style.css" rel="stylesheet">
  <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>

    <div class="registration-form">
         
        <div class="registration-form">
         
        
        <?php $form = ActiveForm::begin(['id'=>'form111']); ?>
 <div  id="traffic2" class="view"   style="margin-top: -17px;">
        <img class="jt" src="/img/jt.png">

	<ul style="margin-top:50%">
		

		<li>

                <span>返程方式</span>
                <input type="hidden" name="Registration[back_transportation]" value="">
                    <input type="radio" name="Registration[back_transportation]" value="飞机" <?= $model->back_transportation=='飞机'?'checked':''?>> <span>飞机</span>
                   <input type="radio" name="Registration[back_transportation]" value="火车" <?= $model->back_transportation=='火车'?'checked':''?>> <span>火车</span>
                   <input type="radio" name="Registration[back_transportation]" value="自驾" <?= $model->back_transportation=='自驾'?'checked':''?>> <span>自驾</span>

		</li>
		<li>
             <span>返程抵达城市</span>
                <input type="text" id="arrived_city" name="Registration[arrived_city]" onblur="registration_arrived_city()"  value="<?= $model->arrived_city?>">
					
		</li>
		<li>
                <span>返程出发地点</span>
					<select id="departure_location" name="Registration[departure_location]" aria-invalid="false">
						<option value="上秦准假日酒店" <?= $model->departure_location=='上秦准假日酒店'?'selected':''?>>上秦准假日酒店</option>
					</select>

		</li>
		<li>
                <span>返程航班号/车次</span>
					<input type="text" id="back_flight_number" onblur="registration_back_flight_number()" name="Registration[back_flight_number]" value="<?= $model->back_flight_number?>">
		</li>
		<li>

                <span>返程出发时间</span>
					<input type="text" id='departure_time'  name="Registration[departure_time]" value="<?= $model->departure_time?>">

		</li>
		<li>

            <span>是否送机</span>
            <input type="hidden" name="Registration[is_send]" value="">
            <input type="radio" name="Registration[is_send]" value="是" <?= $model->is_send=='是'?'checked':''?>> <span>是</span>
            <input type="radio" name="Registration[is_send]" value="否" <?= $model->is_send=='否'?'checked':''?>> <span>否</span>

		</li>
	</ul>
</div>
        
            

        
        <input id="next" style="" value="" type="button">
		 



 <?php ActiveForm::end(); ?>
         
          
        
    </div>
         
          
        
    </div>

</body>
</html>
<script>
$('#next').click(function(){
	var arrived_city=$('#arrived_city').val();if(arrived_city==''){alert('请填写返程抵达城市');return false;}
	var departure_time=$('#departure_time').val();if(departure_time==''){alert('请填写返程出发时间');return false;}
	var back_flight_number=$('#back_flight_number').val();if(back_flight_number==''){alert('请填写返程航班号/车次');return false;}
	//var arrival_time=$('#arrival_time').val();if(arrival_time==''){alert('请填写抵达时间');return false;}
	$('#next').submit();
	
	
})



</script>